import Pnt from "../Pnt";
import { ClassName, Events } from "@/Constants";
import Feature from "../../Feature"

// 控制点的基类
export default class CtrlPnt extends Pnt {

    parent: Feature;

    constructor(parent: Feature, x = 0, y = 0, width: number = 14, height?:number) {   // 相对坐标
        super(x, y, width, height);
        this.className = ClassName.CTRLPNT;
        this.parent = parent;
        this.isFixedPos = parent.isFixedPos;
        this.parent.addChild(this, false);
    }
}